/**
 * 个人中心
 *
 */
import Layout from "@/components/layout";
import Info from "./components/info";
import Shortcut from "./components/shortcut";
import GiveServiceTo from "./components/give-service-to";
import Help from "./components/help";
import Taro, { usePullDownRefresh } from "@tarojs/taro";

function Profile() {
  /**
   * 小程序下下拉刷新
   */
  usePullDownRefresh(() => {
    setTimeout(() => {
      Taro.stopPullDownRefresh();
    }, 1000);
  });

  return (
    <Layout noheader backgroundColor="#f9f9f9" disableDict>
      {
        /**
         * 个人信息
         */
        <Info />
      }
      {
        /**
         * 快捷菜单
         */
        <Shortcut />
      }
      {
        /**
         * 服务
         */
        <GiveServiceTo />
      }
      {
        /**
         * 帮助中心
         */
        <Help />
      }
    </Layout>
  );
}

export default Profile;
